 #include "baseconversion.h"
#include <DApplication>
#include <DWidget>
#include <DWidgetUtil>
#include <DStyle>
#include <QDebug>
#include <QStyleFactory>
DWIDGET_USE_NAMESPACE

int main(int argc, char *argv[])
{
    DApplication::loadDXcbPlugin();
    DApplication a(argc, argv);

    a.setOrganizationName("UOS");
    a.setApplicationName("进制转换工具");
    a.setApplicationVersion("0.1");
    a.setApplicationDescription("不同进制间的转换");
    a.setProductIcon(QIcon(":/icon/base-conversion.svg"));
    a.setWindowIcon(QIcon(":/icon/base-conversion.svg"));
    a.setApplicationAcknowledgementPage("https://gitee.com/yjmshl/DtkDemo");

    QFile *qssFile;
    qssFile  = new QFile(":/qss/my.qss");
    qssFile->open(QFile::ReadOnly);
    QString styleSheet = qssFile->readAll();
    a.setStyleSheet(styleSheet);
    qssFile->close();

    BaseConversion w;
    w.setMinimumSize(900, 600);
    w.setMaximumSize(900, 600);
    w.show();

    Dtk::Widget::moveToCenter(&w);

    return a.exec();
}
